//
//  CGInputTextView.m
//  SchoolClient
//
//  Created by mac on 15/11/3.
//  Copyright © 2015年 mac. All rights reserved.
//

#import "CGInputTextView.h"

@implementation CGInputTextView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
        self.backgroundColor = [UIColor whiteColor];
        
        self.label = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, 60, self.bounds.size.height - 20)];
        //self.label.font = [UIFont boldSystemFontOfSize:16];
        [self addSubview:self.label];
        
        self.textField = [[UITextField alloc]initWithFrame:CGRectMake(70, 5, self.bounds.size.width - 70, self.bounds.size.height - 10)];
        self.textField.clearButtonMode = UITextFieldViewModeAlways;
        self.textField.font = [UIFont systemFontOfSize:16];
        [self addSubview:self.textField];
    }
    return self;
}



/*
+(instancetype)inputTextViewWithTitel:(NSString *)title
                       andPlaceHolder:(NSString *)placeHolder{
    
    return [[CGInputTextView alloc]initWithTitle:title andPlaceHolder:placeHolder];
}
*/

@end
